package com.hupu.jrs.ui.post

import com.hupu.jrs.bean.BaseError
import com.hupu.jrs.bean.Exam
import com.hupu.jrs.ui.BasePresenter
import com.hupu.jrs.ui.BaseView

/**
 * Created by sll on 2016/5/11.
 */
interface PostContract {

    interface View : BaseView {
        fun renderError(error: BaseError)

        fun renderExam(exam: Exam)

        fun showLoading()

        fun hideLoading()

        fun postSuccess()
    }

    interface Presenter : BasePresenter<View> {
        fun checkPermission(type: Int, fid: String, tid: String)

        fun parse(paths: MutableList<String>)

        fun comment(tid: String, fid: String, pid: String, content: String)

        fun post(fid: String, content: String, title: String)
    }
}
